package org.jeecg.modules.online.desform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 表单设计器url授权表
 * @Author: jeecg-boot
 * @Date: 2019-08-29
 * @Version: V1.0
 */
@Data
@TableName("design_form_url_auth")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "design_form_url_auth对象", description = "表单设计器url授权表")
public class DesignFormUrlAuth {

    public DesignFormUrlAuth() {

    }

    public DesignFormUrlAuth(String desformCode) {
        this.desformCode = desformCode;
    }

    public DesignFormUrlAuth(String desformId, String desformCode, String urlType) {
        this.desformId = desformId;
        this.desformCode = desformCode;
        this.urlType = urlType;
        // URL状态默认有效
        this.urlStatus = 1;
    }

    /**
     * id
     */
    @Excel(name = "id", width = 15)
    @ApiModelProperty(value = "id")
    @TableId(type = IdType.ID_WORKER_STR)
    private java.lang.String id;

    /**
     * 表单ID
     */
    @Excel(name = "表单ID", width = 15)
    @ApiModelProperty(value = "表单ID")
    private java.lang.String desformId;
    /**
     * 表单CODE
     */
    @Excel(name = "表单CODE", width = 15)
    @ApiModelProperty(value = "表单CODE")
    private java.lang.String desformCode;
    /**
     * 链接类型
     */
    @Excel(name = "链接类型", width = 15)
    @ApiModelProperty(value = "链接类型")
    private java.lang.String urlType;
    /**
     * 链接状态（1=有效，2=无效）
     */
    @Excel(name = "链接状态（1=有效，2=无效）", width = 15)
    @ApiModelProperty(value = "链接状态（1=有效，2=无效）")
    private java.lang.Integer urlStatus;
    /**
     * 创建人
     */
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
    /**
     * 修改人
     */
    @Excel(name = "修改人", width = 15)
    @ApiModelProperty(value = "修改人")
    private java.lang.String updateBy;
    /**
     * 修改时间
     */
    @Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private java.util.Date updateTime;
}
